package com.atos.smp.util;

import com.atos.smp.beans.Event;

public class EventMapper {

	public static Number get(Event event) {
		if (event.equals(Event.OPEN)) {
			return 1;
		}
		if (event.equals(Event.CLOSE)) {
			return 2;
		}
		if (event.equals(Event.LOCK)) {
			return 3;
		}
		if (event.equals(Event.UNLOCK)) {
			return 4;
		}
		return 0;
	}

}
